package com.bao.ad.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * ClassName CommonResponse
 *
 * @author Bai
 * @version 1.0
 * @date 2019/2/17 0017 下午 20:33
 **/
@Data
@AllArgsConstructor
public class CommonResponse<T> implements Serializable {

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 信息
     */
    private String message;

    /**
     * 数据
     */
    private T date;

    public CommonResponse() {}

    public CommonResponse(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
